/*
 * DbStore.h
 *
 *  Created on: 2018年3月5日
 *      Author: chuanjiang.zh@qq.com
 */

#ifndef DBSTORE_H_
#define DBSTORE_H_

#include "BasicType.h"
#include "DbConnectionPool.h"
#include <vector>
#include "StringMap.h"
#include "DbTypes.h"


typedef std::vector< int >  IntArray;

namespace db
{
	typedef std::vector< db::Device >  DeviceArray;
}



class DbStore
{
public:
    static const int APPVERSION_ID = 1;

public:
	explicit DbStore(db::DbConnectionPoolPtr dbPool = db::DbConnectionPoolPtr());
	virtual ~DbStore();

	void setDb(db::DbConnectionPoolPtr dbPool);


protected:

	db::DbConnectionPoolPtr m_dbPool;


};

#endif /* DBSTORE_H_ */
